package GUI.Frame;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class TextFrameMain {
    public static void main(String[] args) {
        MyFrame my = new MyFrame(100, 100, 300, 300, Color.BLACK);
        MyFrame my2 = new MyFrame(400, 100, 300, 300, Color.GRAY);
        MyFrame my3 = new MyFrame(700, 100, 300, 300, Color.GREEN);
        MyFrame my4 = new MyFrame(100, 400, 300, 300, Color.WHITE);
        MyFrame my5 = new MyFrame(400, 400, 300, 300, Color.YELLOW);
        MyFrame my6 = new MyFrame(700, 400, 300, 300, Color.PINK);
        Frame frame = new Frame();
        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
    }
}
